package ywpt.components.acegi.domain;


import java.util.HashSet;
import java.util.Set;


public class Resource implements java.io.Serializable {


   
	 private static final long serialVersionUID = 8548812775852890492L;
	 private  Long id;
     private Integer version;
     private String resName;
     private String resType;
     private String resString;
     private String functionCode;
     private String description;
     private Set<Role> roles = new HashSet<Role>(0);
     private String authorize;

    // Constructors

    /** default constructor */
    public Resource() {
    }

    
    // Property accessors

    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

    public Integer getVersion() {
        return this.version;
    }
    
    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getResName() {
        return this.resName;
    }
    
    public void setResName(String resName) {
        this.resName = resName;
    }

    public String getResType() {
        return this.resType;
    }
    
    public void setResType(String resType) {
        this.resType = resType;
    }

    public String getResString() {
        return this.resString;
    }
    
    public void setResString(String resString) {
        this.resString = resString;
    }

    public String getFunctionCode() {
		return functionCode;
	}


	public void setFunctionCode(String functionCode) {
		this.functionCode = functionCode;
	}


	public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }

    public Set<Role> getRoles() {
        return this.roles;
    }
    
    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }


	public String getAuthorize() {
		return authorize;
	}

	public void setAuthorize(String authorize) {
		this.authorize = authorize;
	}
   
}